﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;

namespace ldhWebApiWpf.models
{
    public class Book
    {
        public ObjectId Id { get; set; }
        public string Title { get; set; }
        public DateTime ReleaseDate { get; set; }
        [BsonIgnoreIfNull]
        public string Genre { get; set; }
        public double Price { get; set; }
    }
}
